<?php
$path = $_SERVER['DOCUMENT_ROOT'].'/nsbbs/public/invalidword.txt';
$invalidwordstr = file_get_contents($path);
$arr = explode('、',$invalidwordstr);
echo(json_encode([
    data => $arr
]))
?>